<?php

	if( isset($_SESSION["autenticado"]) != true){
		header("Location: /sgs/?index.php&pg=login&res=erro");
	}

	$pg = $_GET['pg']; if(empty($pg)){ $pg = 'vazio'; }
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>.:: Teste ::.</title>
                
        <!-- CSS -->
        <link href="files/lib/css/style.css" rel="stylesheet" type="text/css" />
	
        <!-- GA -->
        <script type="text/javascript">
		var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
		document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
        </script>
		<script type="text/javascript">
			try {
				var pageTracker = _gat._getTracker("UA-2260508-2");
				pageTracker._trackPageview();
			} catch(err) {}
        </script>        
                               
        <!-- JQUERY -->
        <script type="text/javascript" src="files/lib/jquery/jquery-1.7.2.js"></script>
                
        <!-- MENU -->
		<link rel="stylesheet" type="text/css" href="files/lib/css/superfish.css" media="screen">
		<script type="text/javascript" src="files/lib/jquery/hoverIntent.js"></script>
		<script type="text/javascript" src="files/lib/jquery/superfish.js"></script>
		<script type="text/javascript">
			jQuery(function(){
				jQuery('ul.sf-menu').superfish();
			});
		</script>         
        
        <!-- MÁSCARAS -->
        <script type="text/javascript" src="files/lib/jquery/jquery.maskedinput-1.3.min.js"></script>
		<script type="text/javascript">
			$(document).ready( function () {
				$("#matricula").mask("99999999");
				$("#cnpj").mask("99.999.999/9999-99");
				$("#cep").mask("99999-999");
				$("#serie").mask("99999-9");
				$("#tombamento").mask("99999-9");				
			})
		</script> 
		
		<!-- LIMITAR CARACTERES DIGITADOS -->
        <script type="text/javascript" src="files/lib/jquery/jquery.limit-1.2.source.js"></script>
        <!-- VALIDAÇÃO DOS CAMPOS 
		<script src="files/lib/jquery/jquery.validate.js" type="text/javascript"></script>	
		<script type="text/javascript">
			$(document).ready( function () {
				//descricao').limit('250','#charsLeft');
				
				$(".form").validate({							
					rules:{
						unidade:{ required: true },
						setor:{ required: true },
						localizacao:{ required: true },
						descricao:{ required: true},
						nome:{ required: true}
					},
					messages:{ 
						unidade: "",
						setor: "",
						localizacao: "",
						descricao: "",
						nome: ""
					}
				});
				
				$("#nome").change(function(){
					$("#nome").blur().focus();
				});
			})
		</script>-->
    </head>

<body>
	<div id="safe-center">

